package principle.adapter;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class phone {
    public void charge(voltage5 voltage5){
        if(voltage5.output5() == 5) System.out.println("电压为5，可以充电");
        else if(voltage5.output5() > 5) System.out.println("电压大于5，不可以充电");
    }
}
